package com.d3works.apps.hr.service.lunch.voucher;

import com.d3works.apps.hr.db.LunchVoucherAdvance;
import com.d3works.exception.D3worksException;
import com.google.inject.persist.Transactional;

public interface LunchVoucherAdvanceService {

  @Transactional(rollbackOn = {Exception.class})
  public void onNewAdvance(LunchVoucherAdvance lunchVoucherAdvance) throws D3worksException;

  public int useAdvance(LunchVoucherAdvance lunchVoucherAdvance, int qty) throws D3worksException;
}
